package com.example.RuanJianKeShe.Bean;

import java.util.Date;

public class SC {
    private int id;
    private int sno;
    private int cno;
    private int grade;
    private Date createTime;

    public SC() {
        createTime = new Date();
    }

    public SC(int id, int sno, int cno, int grade) {
        this.id = id;
        this.sno = sno;
        this.cno = cno;
        this.grade = grade;
        createTime = new Date();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public int getCno() {
        return cno;
    }

    public void setCno(int cno) {
        this.cno = cno;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SC{" +
                "id='" + id + '\'' +
                ", sno='" + sno + '\'' +
                ", cno='" + cno + '\'' +
                ", grade='" + grade + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
